<jsp:useBean id="commodityParameterList" scope="request" type="java.util.List"/>
<%--
  Created by IntelliJ IDEA.
  User: 吴
  Date: 2023/12/20
  Time: 11:37
  To change this template use File | Settings | File Templates.
--%>
<!-- 标记为HTML格式 -->
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page isELIgnored="false" %>
<!-- 设置页面为Chain -->
<html lang="ch">
<head>
    <jsp:useBean id="commodity" scope="request" type="com.xm.entity.Commodity"/>
    <title>${commodity.commodityName} 立即购买</title>
    <!-- 设置地址栏主题背景颜色 -->
    <meta name="theme-color" content="#000000">
    <!-- 页面描述 -->
    <meta name="description" content="商品详情页面">
    <!-- 移动端显示 -->
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <!-- 页面Logo -->
    <link rel="shortcut icon" href="http://localhost:8083/resource_packs/images/logo.png">
    <style>
        .introduce{
            width: 80%;
            border-top: 1px solid #e0e0e0;
            margin: 10px auto auto;
        }
    </style>
</head>
<body>
<div style="background-color: #000000">
    <c:forEach items="${commodityParameterList}" var="commodityParameter">
        <c:if test="${commodityParameter.parameterImages != null}">
            <img src="http://localhost:8083/resource_packs/images/${commodityParameter.parameterImages}"
                 alt="商品参数图片" width="100%" height="100%">
        </c:if>
        <c:if test="${commodityParameter.parameterTitle != null}">
            <div class="introduce" style="color: #ffffff">
                <h3>${commodityParameter.parameterTitle}</h3>
                <a style="margin-left: 10%;width: 80%;display: block;margin-bottom: 20px;">${commodityParameter.parameterContext}</a>
            </div>
        </c:if>
    </c:forEach>
</div>

</body>
</html>
